function ProgressBar(s,nMC)

PercDone = 100*(s/nMC);
if PercDone/2 - floor(PercDone/2)==0
     fprintf(1,'%1s', ['.']);
    if PercDone/10 - floor(PercDone/10)==0
        fprintf(1,'%2.0f', PercDone);fprintf(1,'%1s','%');
    end
end

end